// import { request } from 'umi';
import request from '@/utils/request';

import md5 from 'js-md5';
export type LoginParamsType = {
  password: string;
  userAccount: string;
};
//首页-登录
export async function portalLogin(values: LoginParamsType): Promise<any> {
  return request(`/login/portalLogin`, {
    method: 'POST',
    data: {
      ...values,
      password: md5(`${values.password}@zcdx`),
    },
  });
}
